package net.zjitc.dao;

import net.zjitc.domain.Product;

import java.sql.SQLException;
import java.util.List;

/**
 * 2 * @Author: 洪瑶
 * 3 * @Date: 2018/10/16 15:23
 * 4
 */
public interface ProductDao {
    List<Product> sqlfindAll() throws SQLException;
    List<Product> sqlfindhot() throws SQLException;
    List<Product> sqlfindnew() throws SQLException;
    boolean sqlAdd(Product product) throws SQLException;
    boolean sqlDelete(int id) throws SQLException;
    boolean sqlUpdate(Product product, String id) throws SQLException;
    Product sqlfindbyid(int id) throws SQLException;
    List<Product> findPageList(int page, int pageSize);
    int findcount();
    List<Product> findCategoryPageList(int cid,int page,int pageSize) throws SQLException;
    List<Product> findCategorySecondPageList(int csid, int page, int pageSize) throws SQLException;
}
